<?php
header('Content-disposition: attachment; filename=relatorio.txt');
header('Content-type: text/plain; charset=ISO-8859-1');
$conteudo = htmlentities($_POST['conteudoRelatorio']);
$conteudo = html_entity_decode($conteudo); 
echo $conteudo
?>
